package com.csc.mapper;

import com.csc.dto.ProductParam;
import com.csc.entity.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface ProductsMapper {
    //获取商品列表
    List<Products> list(@Param("productParam") ProductParam productParam);

    //删除商品信息
    int delete(Integer productId);

    int add(Map<String, Object> params);

    Products detail(@Param("productId") Integer productId);

    int update(Products products);
}
